<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="UpdateCardImage.aspx.cs" Inherits="Admin_credit_card_UpdateCardImage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="contents">
        <table width="100%" cellpadding="3" cellspacing="0" border="0">
            <tr>
                <td colspan="2">
                    <h1>Update Card Image</h1><asp:Label runat="server" ID="lblCCId" Visible="false"></asp:Label>
                </td>
            </tr>
            <tr>
                <td valign="top" width="30%">
                    Card Class
                </td>
                <td valign="top">
                    <asp:DropDownList ID="ddlCardclass" runat="server" Width="150px" 
                        AutoPostBack="true" onselectedindexchanged="ddlCardclass_SelectedIndexChanged">
                        <asp:ListItem Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="1">Credit</asp:ListItem>
                        <asp:ListItem Value="2">Debit</asp:ListItem>
                        <asp:ListItem Value="3">Charge</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvCardClass" runat="server" ControlToValidate="ddlCardclass"
                        InitialValue="-1" ErrorMessage="Choose Card Class." ValidationGroup="uploadimage">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Provider Company
                </td>
                <td valign="top">
                    <asp:DropDownList ID="ddlProviderCompanyName" runat="server" 
                        AutoPostBack="true" Width="150px" 
                        onselectedindexchanged="ddlProviderCompanyName_SelectedIndexChanged"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Product Name
                </td>
                <td valign="top">
                    <asp:DropDownList ID="ddlProductName" runat="server" Width="300px" 
                        AutoPostBack="true" 
                        onselectedindexchanged="ddlProductName_SelectedIndexChanged"></asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvProductName" runat="server" ControlToValidate="ddlProductName"
                        InitialValue="-1" ErrorMessage="Choose ProductName." ValidationGroup="uploadimage">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td valign="top">
                    <asp:Image ID="imgCardLogo" ImageUrl="~/captcha/new_company_logo.GIF" runat="server" />
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Serverl Url:
                </td>
                <td valign="top">
                    <asp:Label ID="lblServerUrl" runat="server" Text="None"></asp:Label>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Upload New Card Image
                </td>
                <td valign="top">
                    <asp:FileUpload ID="Uploadcardimage" runat="server" Width="220px" />
                    <asp:RequiredFieldValidator ID="rfvUploadcardimage" runat="server" ControlToValidate="Uploadcardimage"
                        ErrorMessage="Choose ProductName." ValidationGroup="uploadimage">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Button ID="btnSubmit" ValidationGroup="uploadimage" runat="server" 
                        Text="Submit" onclick="btnSubmit_Click" CssClass="btn blue" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Label runat="server" ID="lblMessage" ForeColor="Green" Font-Bold="true"></asp:Label>
                    <asp:Label runat="server" ID="lblError" ForeColor="red" Font-Bold="true"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

